<template>
<div>
  <h1>这是页面1，用户名：{{username}}</h1>
</div>
</template>

<script>
export default {
  name: "Page1",
  data(){
    return{
      username:''
    }
  },
  //页面挂载
  mounted() {
    this.username=this.$route.query.username;
  }
}
</script>

<style scoped>

</style>